x86/hvm/dmop: fix EFAULT condition
authorWei Liu <wei.liu2@citrix.com>
Thu, 28 Sep 2017 09:34:55 +0000 (10:34 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 28 Sep 2017 10:57:21 +0000 (11:57 +0100)
commit1c2ea5ee05f6a046c458e5a0babbd72234b2526d
treed38b9796ef8c125a68cc2c8ee1f0dc219ee7b1db
parentb183c24854a0a6324c8dc45fc39e8dbef6f6afea
x86/hvm/dmop: fix EFAULT condition

The copy macro returns false when the copy fails.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/dm.c